package edu.taru.pojo;

import java.util.HashSet;
import java.util.List;

public class Role {
    private Integer roleId;

    private String roleName;

    private String roleFunctionName;

    private List<Menu> menus;

    @Override
    public String toString() {
        return "Role{" +
                "roleId=" + roleId +
                ", roleName='" + roleName + '\'' +
                ", roleFunctionName='" + roleFunctionName + '\'' +
                ", menus=" + menus +
                '}';
    }

    public String getRoleFunctionName() {
        return roleFunctionName;
    }

    public void setRoleFunctionName(String roleFunctionName) {
        this.roleFunctionName = roleFunctionName;
    }

    public List<Menu> getMenus() {
        return menus;
    }

    public void setMenus(List<Menu> menus) {
        this.menus = menus;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName == null ? null : roleName.trim();
    }
}